package com.dmap.admin.vo.backgroundv3;

import com.dmap.admin.po.AppVersion;

import java.io.Serializable;

/**
 * @author: zmh
 * @create: 18-8-22
 * @description: ${description}
 **/
public class AppVersionInfoVo implements Serializable {
    /**
     * 主键id
     * 表字段 : app_version.id
     */
    private String appVersionId;

    /**
     * 硬件编号
     * 表字段 : app_version.app_number
     */
    private String appNumber;

    /**
     * 最小版本
     * 表字段 : app_version.android_version
     */
    private String androidVersion;

    /**
     * 最新版本
     * 表字段 : app_version.ios_version
     */
    private String iosVersion;

    /**
     * 创建时间
     * 表字段 : app_version.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : app_version.update_time
     */
    private Long updateTime;

    public AppVersionInfoVo(AppVersion appVersion) {
        if (appVersion.getId() != null) {
            this.appVersionId = appVersion.getId() + "";
        }
        if (appVersion.getAppNumber() != null) {
            this.appNumber = appVersion.getAppNumber();
        }
        if (appVersion.getAndroidVersion() != null) {
            this.androidVersion = appVersion.getAndroidVersion();
        }
        if (appVersion.getIosVersion() != null) {
            this.iosVersion = appVersion.getIosVersion();
        }
        if (appVersion.getCreateTime() != null) {
            this.createTime = appVersion.getCreateTime();
        }
        if (appVersion.getUpdateTime() != null) {
            this.updateTime = appVersion.getUpdateTime();
        }
    }

    public AppVersionInfoVo() {
    }

    public String getAppVersionId() {
        return appVersionId;
    }

    public void setAppVersionId(String appVersionId) {
        this.appVersionId = appVersionId;
    }

    public String getAppNumber() {
        return appNumber;
    }

    public void setAppNumber(String appNumber) {
        this.appNumber = appNumber;
    }

    public String getAndroidVersion() {
        return androidVersion;
    }

    public void setAndroidVersion(String androidVersion) {
        this.androidVersion = androidVersion;
    }

    public String getIosVersion() {
        return iosVersion;
    }

    public void setIosVersion(String iosVersion) {
        this.iosVersion = iosVersion;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}
